<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.min.js"></script>
</head>
<body>
<div id="app">
    <h3 v-show="false">{{ message }}</h3>
    <h3 v-show="true">{{ message }}</h3>
    <hr>
    <!-- 用来控制标签是否展示 true false  -->
    <h3 v-show="true">{{message}}</h3>
    <hr>
    <h3 v-show="isShow">{{message}}</h3>
    <hr>
    <input type="button" v-show="isShow" value="点击控制是否展示" @click="showMsg">

    <hr>
    <span v-show="count>=30">百知教育</span>
    <input type="button" @click="change_count" value="减少">
    <input type="button" @click="add_count" value="增加">
</div>
<script>
    new Vue({
        el: "#app",
        data: {
            message: "11111",
            isShow: true,
            count: 30,
        },
        methods: {
            showMsg() {
                this.isShow = !this.isShow;
            },
            change_count(){
              this.count--;
            },
            add_count(){
                this.count++;
            },

        },
    })
</script>
</body>
</html>